-
Notifications
You must be signed in to change notification settings - Fork 8k
Add support for Xilinx RTC controller #96720
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Please fix that reported issue above. |
Add device tree binding for Xilinx RTC controller. The RTC ensures accurate timekeeping using either auxiliary (VCCAUX_PMC) or battery (VCC_BATT) power. It includes calibration logic to adjust for temperature and voltage variations, supporting long-term accuracy. The RTC generates periodic second tick and alarm interrupts for use by system processors. It features a 32-bit seconds counter (supports up to 136 years), a 16-bit tick counter and a 4-bit fractional counter for fine-grained calibration. Signed-off-by: Balanakakamal V <[email protected]> Signed-off-by: Harini T <[email protected]>
Add driver support for Xilinx RTC controller. The supported features include: - Set and get time using Zephyr time conversion functions. - Configuring and handling alarms using interrupt-based callbacks. - Querying and updating alarm time and supported alarm fields. - Detecting alarm triggers and monitoring pending alarm status. - RTC calibration using coarse and fine offset adjustments. Alarm and calibration features are conditionally compiled using the CONFIG_RTC_ALARM and CONFIG_RTC_CALIBRATION options. Signed-off-by: Balanakakamal V <[email protected]> Signed-off-by: Harini T <[email protected]>
Add rtc0 node to zynqmp.dtsi to enable RTC support. Introduce alarms-count parameter to support alarm test cases. This parameter is added to the Device Tree so test cases can read its value and use it during testing. The IP supports only a single alarm count. Signed-off-by: Balanakakamal V <[email protected]> Signed-off-by: Harini T <[email protected]>
Add support for RTC in kv260_r5. Update kv260_r5_defconfig to enable RTC alarm and calibration support in the rtc_api test. Signed-off-by: Balanakakamal V <[email protected]> Signed-off-by: Harini T <[email protected]>
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Counters, even low power ones, use the counter API. RTCs are not counters, they store time in broken down time. Instead, implement a counter driver for the counter, and a user may choose to use this wrapper https://github.com/zephyrproject-rtos/zephyr/blob/main/drivers/rtc/rtc_counter.c to expose it as an RTC device
This series does the following